// https://juejin.cn/post/6844903641057329160

let Mock  = require('mockjs');
let Random = Mock.Random;
module.exports = function() {
  let data = { list: [] }
  for (let i = 0; i < 10; i++) {
    data.list.push({ 
        id: i+1, 
        name: Random.cname(),
        link:Random.url('https'),
        city:Random.city(),
        avatar:Random.image('100x100','#f00','#fff',i+1+''),
        ...Mock.mock({      
            "stars|1-10": "★"
          }),
    })
  }
  return data
}
